﻿using FreeSql.DataAnnotations;
using KrasDD.Attributes;

namespace KrasDD.Models
{
    [
        JsonObject(MemberSerialization.OptIn),
        Table(Name = "[innovator].[DOCUMENT_FILE]", DisableSyncStructure = false)
    ]
    [ItemType("DF83A1B4C5D6E7F8A9B0C1D2E3F4A5C1", "DOCUMENT_FILE", true)]
    public partial class DOCUMENT_FILE : Relationships<DOCUMENT, FILE>
    {
        [JsonProperty, Column(StringLength = 64)]
        public string BEHAVIOR { get; set; }

        [JsonProperty, Column(StringLength = 256)]
        public string EXTERNAL_ID { get; set; }

        [JsonProperty, Column(StringLength = 128)]
        public string EXTERNAL_OWNER { get; set; }

        [JsonProperty, Column(StringLength = 128)]
        public string EXTERNAL_TYPE { get; set; }

        [JsonProperty, Column(DbType = "bit")]
        public bool IS_SHARED { get; set; } = true;
    }
}
